package com.aop.test;

import com.aop.bean.Calculate;
import com.aop.bean.CalculateAspect;
import com.aop.bean.CalculateImpl;
import com.aop.bean.Depend;
import org.springframework.context.annotation.*;

@Configuration
@EnableAspectJAutoProxy(/*proxyTargetClass = true, */exposeProxy = true)
public class AopMainConfig {

    @Bean
    public Calculate calculate() {
        return new CalculateImpl();
    }

    @Bean
    public CalculateAspect calculateAspect() {
        return new CalculateAspect();
    }

    @Bean
	public Depend depend() {
    	return new Depend();
	}
}
